package com.yipei.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yipei.common.annotation.Excel;
import com.yipei.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 持仓股票对象 ml_position_share
 *
 * @author yipei
 * @date 2024-12-21
 */
@Data
@ApiModel(value = "持仓股票", description = "持仓股票")
@TableName("ml_position_share")
    public class MlPositionShare extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "表ID", position = 1)
    private String id;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", position = 2)
    @Excel(name = "备注")
    private String remarks;

    /**
     * 交易账号
     */
    @ApiModelProperty(value = "交易账号", position = 3)
    @Excel(name = "交易账号")
    private String tdAcc;

    /**
     * 标的代码
     */
    @ApiModelProperty(value = "标的代码", position = 4)
    @Excel(name = "标的代码")
    private String symbol;

    /**
     * 可用仓位
     */
    @ApiModelProperty(value = "可用仓位", position = 6)
    @Excel(name = "可用仓位")
    private BigDecimal kyCw;

    /**
     * 锁定仓位
     */
    @ApiModelProperty(value = "锁定仓位", position = 7)
    @Excel(name = "锁定仓位")
    private BigDecimal sdCw;

    /**
     * 今日仓位
     */
    @ApiModelProperty(value = "今日仓位", position = 8)
    @Excel(name = "今日仓位")
    private BigDecimal jrCw;

    /**
     * 成本均价
     */
    @ApiModelProperty(value = "成本均价", position = 9)
    @Excel(name = "成本均价")
    private BigDecimal cbJj;


    @Excel(name = "委托单号")
    @ApiModelProperty(value = "委托单号", position = 7)
    private String wtDh;

    @Excel(name = "持仓单号")
    @ApiModelProperty(value = "持仓单号", position = 7)
    private String ccDh;
    /**
     * 已获盈利
     */
    @ApiModelProperty(value = "已获盈利", position = 10)
    @Excel(name = "已获盈利")
    private BigDecimal yhYl;


    @TableField(exist = false)
    private String sec_name;
    @TableField(exist = false)
    private String price;
    @TableField(exist = false)
    private BigDecimal cost;
    @TableField(exist = false)
    private BigDecimal amount;
    @TableField(exist = false)
    private BigDecimal ky_cw;
    @TableField(exist = false)
    private BigDecimal yh_yl;
    @TableField(exist = false)
    private String f12;
    @TableField(exist = false)
    private String pre_close;
    @TableField(exist = false)
    private String f14;
    @TableField(exist = false)
    private String ratio;
}
